#pragma once
#include "player.h"
class LocalPlayer :
	public Player
{
private:
	bool isXClicked(std::pair<unsigned char, unsigned char> location, float x, float y)
	{
		if(location.first == 16) return false;
		else return (((x>=(400 + location.first*56))&&(x<(400 + (location.first+1)*56))) &&((y>=(194 + location.second*76))&&(y<(194 + (location.second+1)*76))));
	}
public:
	LocalPlayer(void);
	~LocalPlayer(void);
	Piece * choosePiece(sf::RenderWindow & window, std::vector<Piece>& m_pieces);
	void play(sf::RenderWindow & window, Piece *piece, std::vector<Piece>& m_pieces);
};

